﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.Interface.Common.Model.GateWay
{
    public class GateWayResult
    {
        public bool success { get; set; }
        public int? status { get; set; }
        public string error { get; set; }
        public string message { get; set; }
        public string errorDetail { get; set; }
        public int? count { get; set; }
        public string interfaceName { get; set; }
        public string methodName { get; set; }
        public string serverIp { get; set; }
        public string apiDescription { get; set; }
        public string traceId { get; set; }
        public object @object { get; set; }
        /// <summary>
        /// 警告标志
        /// </summary>
        public int? warningFlag { get; set; }
        public bool hasWarning { get {  return warningFlag==1; } }
    }

    public class GateWayResult<T>: GateWayResult
    {
        public new T @object { get; set; }
    }
}
